﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Wiki.ATag" %>
<%@ Import Namespace="Model.WWW_WWW.Wiki"%>
<asp:Literal ID="lUers" Text="10" runat="server" Visible="false"/>
<asp:Literal ID="lCount" Text="25" runat="server" Visible="false"/>
<asp:Literal ID="lDLearn" Text="" runat="server" Visible="false"/>
<asp:Literal ID="lDBaseL" Text="" runat="server" Visible="false"/>
<div class="common">
	<div id="new_body">
		<div id="body_900">
		<div id="body_left"></div>
		<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%if(Learn!=""&&BaseL!=""){ %>
						<%=GetText("C0105",new string[]{GetLanguageText(Learn)})%> <%=GetText("C2019",new string[]{GetLanguageText(BaseL)})%>
						<%}%>
						<%=GetText("WK016")%>: <%=Tag %></h1>
							</div>
							<div class="submenuN_button"><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a href="/knowledge/edit.htm" class="Naddbtn btnspec" style="text-decoration:none"><%}else{ %><a href="#" onclick="NotAffirm()" class="Naddbtn btnspec" style="text-decoration:none"><%} %><span><%=GetText("WK004")%></span></a></div>
						</div>
					</div>
				</div>
			<div class="Center9001n">
				<div class="Center9001Right">
					<div class="Center9001Content">
						<div class="knowedge_area">
							<div style="border-bottom: 1px #eee solid; padding-bottom: 5px; text-align: right"><%=RecordCount%> <%=GetText("WK017")%>: 
							<%if (Flag.ToLower() == "a"){%>
							<strong><%=GetText("WK131")%></strong> 
							<%}else{ %>
							<a href="/knowledge/selecttags-1-<%=Learn%>-<%=BaseL%>-<%=HttpUtility.UrlEncode(Tag)%>-A.htm"><%=GetText("WK131")%></a>
							<%} %>
							| 
							<%if (Flag.ToLower() == "w"){%>
							<strong><%=GetText("WK053")%></strong>
							<%}else{ %>
							<a href="/knowledge/selecttags-1-<%=Learn%>-<%=BaseL%>-<%=HttpUtility.UrlEncode(Tag)%>-W.htm"><%=GetText("WK053")%></a> 
							<%} %>
							| 
							<%if (Flag.ToLower() == "c"){%>
							<strong><%=GetText("WK054")%></strong>
							<%}else{ %>
							<a href="/knowledge/selecttags-1-<%=Learn%>-<%=BaseL%>-<%=HttpUtility.UrlEncode(Tag)%>-C.htm"><%=GetText("WK054")%></a>
							<%} %>
							</div>
							<div class="margin10">
								<ul class="wiki_list">
									<asp:Repeater ID="rptLB" runat="server">
										<ItemTemplate>
											<li><span class="blue14bu"><a href='/knowledge/<%#((PageType)Eval("Type"))==PageType.Wiki?(HttpUtility.UrlEncode(Eval("Name","wiki-{0}.htm").ToString())):(HttpUtility.UrlEncode(Eval("Name","contribution-{0}.htm").ToString()))%>'>
									<%#Lx.Web.Common.UI.Globals.GetString(HttpUtility.HtmlEncode(Eval("Title").ToString()), 80)%></a></span> 
									<span class="grey10"><%#GetText("WK129", new string[] { "<a href='/" + Eval("Creator") + ".htm'>" + HttpUtility.HtmlEncode(Eval("NickName").ToString()) + "</a>" })%> </span><span dir="ltr"><%#FormatDiffDate(GetText("C0036"), Eval("DiffDate").ToString())%></span></li>
										</ItemTemplate>
									</asp:Repeater>
									<%if (rptLB.Items.Count == 0){%>
									<li><%=GetText("WK005")%></li>
									<%} %>
								</ul>
							</div>
							<div class="page_num">
								<%=CreatePageNav(RecordCount, int.Parse(lCount.Text), PageIndex, 
									"",string.Format("<span class='page_none grey10'><a href='/knowledge/selecttags-$I$-{0}-{1}-{2}-{3}.htm'>{4}</a></span>&nbsp;",Learn,BaseL,HttpUtility.UrlEncode(Tag),Flag,HttpUtility.UrlEncode(GetText("..."))),"",
									string.Format("<span class='page_none grey10'><a href='/knowledge/selecttags-$I$-{0}-{1}-{2}-{3}.htm'>{4}</a></span>&nbsp;",Learn,BaseL,HttpUtility.UrlEncode(Tag),Flag,HttpUtility.UrlEncode(GetText("..."))),
									string.Format("<span class='page_select'>{0}</span>&nbsp;",PageIndex),
									string.Format("<span class='page_none grey10'><a href='/knowledge/selecttags-$I$-{0}-{1}-{2}-{3}.htm'>$I$</a></span>&nbsp;",Learn,BaseL,HttpUtility.UrlEncode(Tag),Flag))%>
							</div>
						</div>
					</div>
				</div>
				<div class="Center9001Left">
						<div class="right_layerA">
							<div class="layer_contentA"><h4><%=GetText("WK010")%></h4>
								<div class="margin5">
									<asp:Repeater ID="rptUsers" runat="server">
									<ItemTemplate>
									<div class="margin10">
										<div class="pic50 floatl wid65"><a class="photo_50" href="/<%#Eval("Username") %>.htm" title="<%#HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) %>"><%#Eval("Image").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" />" : Eval("Image", "<img src=\"{0}\" />").ToString()%></a></div>
										<div class="wid120"><a href="/<%#Eval("Username") %>.htm"><%#HttpUtility.HtmlEncode(Eval("NickName").ToString())%></a><br /><%#Eval("ConCreatores") %> <%=GetText("WK100")%></div>
										<div class="clear"></div>
									</div>
									</ItemTemplate>
									</asp:Repeater>
									<%if (rptUsers.Items.Count == 0)
									{%>
									<span class="grey12"><%=GetText("WK005")%></span>
									<%} %>
									<%if (rptUsers.Items.Count > int.Parse(lUers.Text)){%>
									<p align="right"><a href="#"><%=GetText("C0040")%></a></p>
									<%}%>
								</div>
							</div>
						</div>
						<div class="right_layerA">
							<div class="layer_contentA"><img src="/Images/icon_tips.gif" align="absmiddle" /> <strong><a href="/knowledge/wiki-How+to+edit+the+italki+wiki1.htm">How do I edit italki wiki?</a></strong></div>
						</div>
				</div>
				<div class="clear"></div>
			</div>
		</div>
		<div id="body_right"></div>
		<div class="clear"></div></div>
		<div id="body_900F"></div>
	</div>
</div>
